﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DAL;

namespace 包覆门
{
    public partial class DotonBarcodeView : Form
    {
        public DotonBarcodeView()
        {
            InitializeComponent();
        }
        public string Danhao { get; set; }
        private OrderDAL dal = new OrderDAL();
        private void DotonBarcodeView_Load(object sender, EventArgs e)
        {
            DataTable dt = dal.GetBarcodeList(Danhao);
            reportViewer1.LocalReport.ReportPath = Application.StartupPath + "\\BarcodeReport.rdlc";

            //指定数据集,数据集名称后为表,不是DataSet类型的数据集
            this.reportViewer1.LocalReport.DataSources.Clear();
            this.reportViewer1.LocalReport.DataSources.Add(new Microsoft.Reporting.WinForms.ReportDataSource("DataSet1", dt));
            //显示报表
            this.reportViewer1.RefreshReport();
        }
    }
}
